package com.supermarket.business.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.supermarket.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售明细对象 sys_sales_detail
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_sales_detail")
public class SupermarketSalesDetailDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    @Excel(name = "明细ID")
    private Long detailId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long quantity;

    /** 销售单价 */
    @Excel(name = "销售单价")
    private BigDecimal unitPrice;

    /** 金额小计 */
    @Excel(name = "金额小计")
    private BigDecimal amount;

    /** 状态(0正常 1已退货) */
    private String status;

    /** 备注 */
    private String remark;
}
